module.exports = {
  productionSourceMap: false,
  devServer: {
    port: 8081,
    https: false,
    proxy: {
      "/kgSearch": {
        //要访问的跨域的域名
        target: "http://ioscdn.kugou.com/api/v3/search/song",
        ws: true,
        secure: false, // 使用的是http协议则设置为false，https协议则设置为true
        changOrigin: true,
        pathRewrite: {
          "^/kgSearch": ""
        }
      },
      "/kwSearch": {
        //要访问的跨域的域名
        target: "http://search.kuwo.cn/r.s",
        ws: true,
        secure: false, // 使用的是http协议则设置为false，https协议则设置为true
        changOrigin: true,
        pathRewrite: {
          "^/kwSearch": ""
        }
      },
      "/txSearch": {
        //要访问的跨域的域名
        target: "https://c.y.qq.com/soso/fcgi-bin/client_search_cp",
        ws: true,
        secure: false, // 使用的是http协议则设置为false，https协议则设置为true
        changOrigin: true,
        pathRewrite: {
          "^/txSearch": ""
        }
      },
      "/mgSearch": {
        //要访问的跨域的域名
        target: "http://pd.musicapp.migu.cn/MIGUM2.0/v1.0/content/search_all.do",
        ws: true,
        secure: false, // 使用的是http协议则设置为false，https协议则设置为true
        changOrigin: true,
        pathRewrite: {
          "^/mgSearch": ""
        }
      },
      "/api": {
        //要访问的跨域的域名
        target: "https://api.pwztx.vip/api/v1/song",
        ws: true,
        secure: false, // 使用的是http协议则设置为false，https协议则设置为true
        changOrigin: true,
        pathRewrite: {
          "^/api": ""
        }
      }
    }
  }
};
